package com.y3k.mail;

import javax.mail.PasswordAuthentication;

import com.y3k.utils.ConfigurationUtil;

public class SMTPAuthentication extends javax.mail.Authenticator {

	public PasswordAuthentication getPasswordAuthentication() {
		MailConfiguration mailConfiguration = ConfigurationUtil.MAIL;
		String username = mailConfiguration.getAuthenticationUsername();
		String password = mailConfiguration.getAuthenticationPassword();
		return new PasswordAuthentication(username, password);
	}

}
